![]() |
YNQ
YNQ-1.5.2
|
Data Structures | |
| struct | CCFileTime |
| struct | CCFileInfo_t |
| struct | CCFileInfo |
| struct | CCVolumeInfo |
Typedefs | |
| typedef struct CCFileInfo_t | FileInfo_t |
| typedef struct CCFileInfo_t FileInfo_t |
This structure is used when calling File Information related CIFS Client API calls, it is used by ccGetFileInformationByNameA() for backward compatibility.
This function is called by application to withdraw the current position in the file. The result is returned as a 64-bit number.
| handle | Handle value returned by calling ccCreateFile(). |
| offset | Pointer to 64 bit value of the file offset. |
This function is called by application to set a file pointer of the file read/write location in the opened file.
| handle | Handle value returned by calling ccCreateFile(). |
| offset | Pointer to 64 bit value of the file offset. Upon successful return this variable contains new offset. |
| method | File seek method (see SEEK_FILE_BEGIN, SEEK_FILE_CURRENT and SEEK_FILE_END Macros in File seek constants module) |
| NQ_BOOL ccServerSideDataCopyA | ( | NQ_CHAR * | srcPath, |
| NQ_CHAR * | dstPath, | ||
| void * | context, | ||
| CCServerSideCopyCallback * | callBack | ||
| ) |
This function is called by application to perform server side copy to a new location. The source and the destination files must be on the same server. Some servers do not support server-side data copy operation such as SMB1 servers, old versions of SAMBA and NetApp. In this case the error code that will be set is NQ_ERR_NOTSUPPORTED. Some servers do not support server-side data copy across different shares such as old versions of SAMBA and lower or equal to SMB 3.0.0 versions of MAC. In this case the error code that will be set is NQ_ERR_NOTSUPPORTED.
| srcPath | Path to the source file. |
| dstPath | Path to the destination file. |
| context | A pointer to a context for the callBack function, if needed. |
| callBack | User defined method that will be called at a completion of an asynchronous server-side data copy operation, can be null. Currently not in use. |
| NQ_BOOL ccServerSideDataCopy | ( | NQ_WCHAR * | srcPath, |
| NQ_WCHAR * | dstPath, | ||
| void * | context, | ||
| CCServerSideCopyCallback * | callBack | ||
| ) |
This function is called by application to perform server side copy to a new location. The source and the destination files must be on the same server. Some servers do not support server-side data copy operation such as SMB1 servers, old versions of SAMBA and NetApp. In this case the error code that will be set is NQ_ERR_NOTSUPPORTED. Some servers do not support server-side data copy across different shares such as old versions of SAMBA and lower or equal to SMB 3.0.0 versions of MAC. In this case the error code that will be set is NQ_ERR_NOTSUPPORTED.
| srcPath | Path to the source file. |
| dstPath | Path to the destination file. |
| context | A pointer to a context for the callBack function, if needed. |
| callBack | User defined method that will be called at a completion of an asynchronous server-side data copy operation, can be null. Currently not in use. |
| NQ_BOOL ccGetDiskFreeSpaceA | ( | const NQ_CHAR * | pathName, |
| NQ_UINT * | sectorsPerCluster, | ||
| NQ_UINT * | bytesPerSector, | ||
| NQ_UINT * | freeClusters, | ||
| NQ_UINT * | totalClusters, | ||
| NQ_UINT * | fsType, | ||
| NQ_UINT * | serialNumber | ||
| ) |
This function is called by application to get the free disk space information for the specified remote share.
| pathName | Path of any object on the remote share the free disk space information is requested for. |
| sectorsPerCluster | Pointer to a variable which will receive the number of sectors per cluster on the remote share. |
| bytesPerSector | Pointer to a variable which will receive the number of bytes per sector on the remote share. |
| freeClusters | Pointer to a variable which will receive the number of free clusters on the remote share. |
| totalClusters | Pointer to a variable which will receive the number of total clusters on the remote share. |
| fsType | Pointer to a variable which will receive the type of the file system. |
| serialNumber | Pointer to a variable which will receive the serial number of the file system |
| NQ_BOOL ccGetDiskFreeSpace | ( | const NQ_WCHAR * | pathName, |
| NQ_UINT * | sectorsPerCluster, | ||
| NQ_UINT * | bytesPerSector, | ||
| NQ_UINT * | freeClusters, | ||
| NQ_UINT * | totalClusters, | ||
| NQ_UINT * | fsType, | ||
| NQ_UINT * | serialNumber | ||
| ) |
This function is called by application to get the free disk space information for the specified remote share.
| pathName | Path of any object on the remote share the free disk space information is requested for. |
| sectorsPerCluster | Pointer to a variable which will receive the number of sectors per cluster on the remote share. |
| bytesPerSector | Pointer to a variable which will receive the number of bytes per sector on the remote share. |
| freeClusters | Pointer to a variable which will receive the number of free clusters on the remote share. |
| totalClusters | Pointer to a variable which will receive the number of total clusters on the remote share. |
| fsType | Pointer to a variable which will receive the type of the file system. |
| serialNumber | Pointer to a variable which will receive the serial number of the file system |
| NQ_BOOL ccGetDiskFreeSpaceExA | ( | const NQ_CHAR * | pathName, |
| NQ_UINT * | sectorsPerCluster, | ||
| NQ_UINT * | bytesPerSector, | ||
| NQ_UINT64 * | freeClusters, | ||
| NQ_UINT64 * | totalClusters, | ||
| NQ_UINT * | fsType, | ||
| NQ_UINT * | serialNumber | ||
| ) |
Extended version of ccGetDiskFreeSpace(). When disk is larger than 4 giga clusters - only the extended version gives the correct result.
| pathName | Path of any object on the remote share the free disk space information is requested for. |
| sectorsPerCluster | Pointer to a variable which will receive the number of sectors per cluster on the remote share. |
| bytesPerSector | Pointer to a variable which will receive the number of bytes per sector on the remote share. |
| freeClusters | Pointer to a variable which will receive the number of free clusters on the remote share. |
| totalClusters | Pointer to a variable which will receive the number of total clusters on the remote share. |
| fsType | Pointer to a variable which will receive the type of the file system. |
| serialNumber | Pointer to a variable which will receive the serial number of the file system |
| NQ_BOOL ccGetDiskFreeSpaceEx | ( | const NQ_WCHAR * | pathName, |
| CCVolumeInfo * | volumeInfo | ||
| ) |
Extended version of ccGetDiskFreeSpace(). When disk is larger than 4 giga clusters - only the extended version gives the correct result.
| pathName | Path of any object on the remote share the free disk space information is requested for. |
| volumeInfo | Pointer to a variable which will receive the volume information, see CCVolumeInfo. |
This function is called by application to get attributes of the specified file.
| fileName | Path to the file. |
This function is called by application to get attributes of the specified file.
| fileName | Path to the file. |
| attributes | Pointer to attributes value. |
This function is called by application to set attributes of the specified file.
| fileName | Path to the file. |
| attributes | Attributes to set. See File attributes module for values. |
This function is called by application to set attributes of the specified file.
| fileName | Path to the file. |
| attributes | Attributes to set. See File attributes module for values. |
| NQ_BOOL ccGetFileInformationByNameA | ( | const NQ_CHAR * | fileName, |
| FileInfo_t * | fileInfo | ||
| ) |
This function is called by application to get the information of the specified file.
| fileName | Path to the file. |
| fileInfo | Pointer to a structure which will receive the file information (see CCFileInfo Structure). |
| NQ_BOOL ccGetFileInformationByName | ( | const NQ_WCHAR * | fileName, |
| CCFileInfo * | fileInfo | ||
| ) |
This function is called by application to get the information of the specified file.
| fileName | Path to the file. |
| fileInfo | Pointer to a structure which will receive the file information (see CCFileInfo Structure). |
This function is called by application to set file size when file is specified by its name.
| fileName | Path to file. |
| sizeLow | Low 32 bit desired file size. |
| sizeHigh | High 32 bit desired file size. |
When the specified file size is less than the current file size, this operation truncates the file to the specified size.
This function is called by application to set file size when file is specified by its name.
| fileName | Path to file. |
| size | 64 bit desired file size. |
When the specified file size is less than the current file size, this operation truncates the file to the specified size.
This function is called by application to apply size to an open file. When the specified file size is less than the current file size, this operation truncates the file to the specified size.
| handle | Handle value returned by calling ccCreateFile(). |
| size | 64 bit desired file size. |
| NQ_BOOL ccGetFileTime | ( | NQ_HANDLE | handle, |
| CCFileTime * | pCreation, | ||
| CCFileTime * | pLastAccess, | ||
| CCFileTime * | pLastWrite | ||
| ) |
This function is called by application to get the time information of the specified file.
| handle | Handle value returned by calling ccCreateFile() |
| pCreation | Pointer to a buffer for file creation time. This buffer should hold the time structure (see CCFileTime Structure) |
| pLastAccess | Pointer to a buffer for file last access time. This buffer should hold the time structure (see CCFileTime Structure) |
| pLastWrite | Pointer to a buffer for file last write time. This buffer should hold the time structure (see CCFileTime Structure) |
| NQ_BOOL ccSetFileTime | ( | NQ_HANDLE | handle, |
| CCFileTime * | pCreation, | ||
| CCFileTime * | pLastAccess, | ||
| CCFileTime * | pLastWrite | ||
| ) |
This function is called by application to set the time information of the specified file.
NQ Client sends time modification request using the provided time values but the server interpretation of this request may apply additional calculations, so that the resulted file times may differ. Null can be passed when no change is required in one of the times.
| handle | Handle value returned by calling ccCreateFile(). |
| pCreation | Pointer to a structure holding the file creation time (see CCFileTime Structure) |
| pLastAccess | Pointer to a structure holding the file last access time (see CCFileTime Structure) |
| pLastWrite | Pointer to a structure holding the file last write time (see CCFileTime Structure) |
This function is called by application to get the size of the specified file.
| handle | Handle value returned by calling ccCreateFile() |
| fileSize | Pointer to a buffer for the NQ_UINT64 value |
| NQ_BOOL ccGetFileInformationByHandle | ( | NQ_HANDLE | handle, |
| CCFileInfo * | fileInfo | ||
| ) |
This function is called by application to get the information of an open file
| handle | Handle value returned by calling ccCreateFile() |
| fileInfo | Pointer to a structure holding the file information (see CCFileInfo Structure) |